package com.cf.mapper;

import com.cf.pojo.User;
import com.cf.pojo.UserDto;

import java.util.Date;

/**
 * @author Chengfei
 * @Description
 * @date 2023/6/24
 */
public class ConvertUtil {

    public static void main(String[] args) {

        User user = new User();
        user.setId("11");
        user.setName("小明");
        user.setCrateTime(new Date());

        UserDto userDto = UserMapper.INSTANCE.userToUserDto(user);
        System.out.println(userDto);
    }

}
